import SanJiao.Triangle;

class Rec {
	double length;
    double width;
    double ZhouChang() {
  	  return 2*(length+width);
    }
    double MianJi() {
  	  return length*width;
    }
	public Rec(double length, double width) {
		super();
		this.length = length;
		this.width = width;
	}
	@Override
	public String toString() {
		return "Rec [length=" + length + ", width=" 
	+ width + ", ZhouChang()=" + ZhouChang() + ", MianJi()=" + MianJi()
				+ "]";
	}
}
//



